#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName :cp2_2.19.py
# @Time     :2023/8/20 22:47
# @Author   :Ash
import bisect
import random

if __name__ == "__main__":
    SIZE = 7
    random.seed(1729)

    my_list = []
    for i in range(SIZE):
        new_item = random.randrange(SIZE*2)
        bisect.insort(my_list, new_item)
        print('%2d ->' % new_item, my_list)


